﻿#ifndef FINANCEKEEPSTANDARDITEMMODEL_H
#define FINANCEKEEPSTANDARDITEMMODEL_H

#include <QStandardItemModel>
#include "financeitem.h"

class FinanceKeepStandardItemModel : public QStandardItemModel
{
    Q_OBJECT
public:
    explicit FinanceKeepStandardItemModel(QObject *parent = nullptr);

    QStringList header;

    void insertFinanceItem(FinanceItem &financeItem);

    void insertFinanceItem(
            QList<FinanceItem*> financeItems,
            QString primaryDirectory,
            QString secondaryDicrory);

    void reset();

    FinanceItem* getFinanceItem(int index);
signals:

public slots:

private:
    QList<FinanceItem*> financeItems;
};

#endif // FINANCEKEEPSTANDARDITEMMODEL_H
